package dao;

import JaveBean.Manage;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @Auther:Liu
 * @Testname:manageDao
 * @Date:2025/3/26 16:58
 */
public interface manageDao {
    @Select("select *from manage")
    List<Manage> findAll();

    @Insert("insert into manage values(#{admire},#{password},null )")
    void sava(Manage manage);

    @Delete("delete from manage where id=#{id}")
    void delete(Integer id);

    @Select("select * from manage where id=#{id}")
    List<Manage> findbyid(Integer id);
}
